<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>{% block title %}高校图书馆推荐系统{% endblock title %}</title>

    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
    <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
    <link rel='stylesheet' href="{{ url_for('static', filename='css/base.css') }}"" />
    <script type=" text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js">
    </script>

    <style type="text/css">
        .thumbnail p,
        .thumbnail h4 {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .star-rating {
            line-height: 32px;
            font-size: 1.25em;
        }

        .star-rating .fa-star {
            color: yellow;
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/min/dropzone.min.css" />

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/min/basic.min.css" />

    <script type="application/javascript"
        src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/min/dropzone.min.js">
        </script>
</head>

<body>
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <!-- Header -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#topNavBar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand">推荐系统前端API展示</a>
            </div>

            <!-- Items -->
            <div class="collapse navbar-collapse" id="topNavBar">
                <ul class="nav navbar-nav ">
                    <li><a href="{{ url_for('root_func') }}">&nbsp; 主页</a></li>
                </ul>
            </div>
        </div>
    </nav>

    <h2 style="color: rgb(87, 39, 177);margin-left:20px;">您好！以下是您的推荐内容：</h2>
    {% for book in books %}
    <div class="panel panel-default" style="margin:20px;">
        <div style="margin:20px;">
            <h2 style="color: rgb(75, 42, 165);">{{ book['title'] }}</h2>
            <h4 style="margin-left: 20px;">ISBN: {{ book['isbn'] }}</h4>
            <h4 style="margin-left: 20px;">图书ID: {{ book['book_id'] }}</h4>
            <h4 style="margin-left: 20px;">分类号: {{ book['code'] }}</h4>
        </div>
    </div>
    {% endfor %}
</body>

</html>